package br.com.vantagensaki.controller;

import br.com.vantagensaki.utils.DataUtil;
import java.io.Serializable;
import java.util.Calendar;
//import org.jboss.seam.ScopeType;
//import org.jboss.seam.annotations.Name;
//import org.jboss.seam.annotations.Scope;

//@Name("InformacoesCliente")
//@Scope(ScopeType.SESSION)
public class InformacoesCliente implements Serializable {

    private String ip;
    private String porta;
    private static final long serialVersionUID = 1L;
    private Calendar dataAcesso;

    public InformacoesCliente() {
        this.dataAcesso = Calendar.getInstance();
    }

    /**
     * @return the ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip the ip to set
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return the porta
     */
    public String getPorta() {
        return porta;
    }

    /**
     * @param porta the porta to set
     */
    public void setPorta(String porta) {
        this.porta = porta;
    }

    /**
     * @return the dataAcesso
     */
    public Calendar getDataAcesso() {
        return dataAcesso;
    }

    /**
     * @param dataAcesso the dataAcesso to set
     */
    public void setDataAcesso(Calendar dataAcesso) {
        this.dataAcesso = dataAcesso;
    }

    @Override
    public String toString() {
        return ip+":"+porta+"@"+DataUtil.formatarDataCompleta(dataAcesso);
    }

}
